//
//  UIButton+CreateButton.h
//  YiGuScience  
//
//  Created by admin on 2017/4/12.
//  Copyright © 2017年 刘艳芹. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <objc/runtime.h>

typedef void (^ActionBlock)(void);

@interface UIButton (CreateButton)
+(UIButton *)creatButtonWithFrame:(CGRect)frame title:(NSString *)title font:(UIFont *)font andTextColor:(UIColor *)textColor bgColor:(UIColor *)bgColor;
+(UIButton *)createButtonWithFrame:(CGRect)frame normalImage:(UIImage *)norImg highLight:(UIImage *)highImg;


@property (readonly) NSMutableDictionary *event;
- (void) handleControlEvent:(UIControlEvents)controlEvent withBlock:(ActionBlock)action;
@end
